Flood Fill
Filled connected pixel given position and color.
Node Data | |
|---|---|
Display name | |
Flood Fill | |
Internal name | |
Node_Flood_Fill | |
Inheritances | |
| Node_Processor | |
| Node_Flood_Fill | |
Inputs | |
toggle |
Channel |
Surfaces | |
surface |
Surface In |
surface |
Mask |
slider |
Mix |
Fill | |
enum |
Fill Mode |
vec2 |
Position |
path |
Path |
int |
Resolution |
surface |
Fill Mask |
color |
Ref. Color |
slider |
Threshold |
Algorithm | |
enum |
Algorithm |
bool |
Diagonal |
int |
Iteration |
Rendering | |
color |
Color |
enum |
Blend Mode |
bool |
Invert |
Background | |
bool |
Fill Background |
color |
Background Color |
Gradient | |
bool |
Fill Gradient |
gradient |
Gradient |
Outputs | |
surface |
Surface Out |
surface |
Fill Mask |
Attributes | |
| Color Depth | |

Flood fill node fill a region with the same color with a new color. That region is based on a single points. If you want to map all regions with new colors, you can use Region Fill node.

Properties
| Fill | |
| Fill Mode | Type of fill source. |
| Position | Position of a pixel in the region to fill. |
| Threshold | How different a color to be to be consider the same region. |
| Algorithm | |
| Algorithm | Flood fill algorithm. |
| Diagonal | Whether to fill diagonal pixel. |
| Iteration | Maximum fill iteration. |
| Rendering | |
| Colors | Color to fill to. |
| Blend | Blending mode between the original and the filled color. |
| Background | |
| Fill Background | Whether to fill background with solid color. |
| Gradient | |
| Fill Gradient | Use different color (sampled from a gradient) per each iteration. |
Commit History
| 1.13.3 |
|
|---|---|
| 1.21.6.010 |
|
Related Links
- Base Code: /scripts/node_flood_fill/node_flood_fill.gml
- Shader [sh_flood_fill_replace]: /shaders/sh_flood_fill_replace/sh_flood_fill_replace.fsh
- Shader [sh_flood_fill_it]: /shaders/sh_flood_fill_it/sh_flood_fill_it.fsh
- Shader [sh_flood_fill_render_mask]: /shaders/sh_flood_fill_render_mask/sh_flood_fill_render_mask.fsh
- Shader [sh_flood_fill_diff]: /shaders/sh_flood_fill_diff/sh_flood_fill_diff.fsh